package cn.bs.mapper;

import cn.bs.domain.dao.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
    List<Comment> getCommentByPostId(Integer postId);

    Comment getById(Integer fatherId);

    Integer getMaxId();

    List<Comment> getCommentByFather(Integer fatherId);

    void deleteByPostId(Integer postId);

    void deleteByUserId(Integer userId);

}
